<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Terbilang Helper
 *
 * @package	CodeIgniter
 * @subpackage	Helpers
 * @category	Helpers
 * @author	Gede Lumbung
 * @link	http://gedelumbung.com
 */

if ( ! function_exists('format_rupiah'))
{
	function formatRupiah($nilaiUang){
		$nilaiRupiah= number_format($nilaiUang,0,',','.');
		return "Rp ".$nilaiRupiah;
	}
	function formatRupiahTabel($nilaiUang){
		$nilaiRupiah= number_format($nilaiUang,0,',','.');
		return "<div style='float:left;'>Rp </div><div style='float:right;text-align:right;'>".$nilaiRupiah."</div>";
	}
}
